<?php
/**
 * quick_curd
 * ============================================================================
 * 版权所有 2024-2099 www.wltx666.com，并保留所有权利。
 * 网站地址: https://www.wltx666.com
 * ============================================================================
 * Author: 草上飞
 * Email: wei@alipay16.cn
 * QQ: 2719875001
 * Date: 2025/7/11
 * 描述:
 */

namespace app\admin\controller;

use app\result\BackupResult;
use think\App;

class Backup extends BaseAdmin
{
    use BaseCurd;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new BackupResult();
    }

    public function index(): string
    {
        return $this->view('backup/index');
    }


    //下载 文件
    public function download()
    {
        return $this->objResult->download($this->param);
    }

    //还原
    public function restore()
    {
        return $this->objResult->restore($this->param);
    }
}
